/**
 * Light-commons Project
 * http://light-commons.googlecode.com
 * Copyright (C) 2008 Jason Green
 * email: guileen@gmail.com
 *
 * License: Apache License 2.0 
 * (http://www.apache.org/licenses/LICENSE-2.0)
 *
 */
package org.lightmtv.response;

import javax.servlet.http.HttpServletResponse;


/**
 * @author gl
 * @since Jun 24, 2008
 */
public class Redirect extends AbstractResponse{
	private String path;
	
	public Redirect() {
	}
	
	/**
	 * @param path
	 */
	public Redirect(String path) {
		this.path = path;
	}
	
	/**
	 * @param path the path to set
	 */
	public void setPath(String path) {
		this.path = path;
	}
	
	@Override
	protected void sendQuietly(HttpServletResponse response) throws Exception {
		response.sendRedirect(path);
	}
}
